home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2009 February / PCWFEB09.iso / Software / Freeware / Adobe Air 1.5 / AdobeAIRInstaller.exe / Adobe AIR / Versions / 1.0 / Adobe AIR Application Installer.swf / scripts / _CheckBoxStyle.as < prev    next >
Encoding:
Text File  |  2008-10-29  |  1.8 KB  |  58 lines

  1. package
  2. {
  3.    import mx.core.IFlexModuleFactory;
  4.    import mx.skins.halo.CheckBoxIcon;
  5.    import mx.styles.CSSStyleDeclaration;
  6.    import mx.styles.StyleManager;
  7.    
  8.    public class _CheckBoxStyle
  9.    {
  10.       public function _CheckBoxStyle()
  11.       {
  12.          super();
  13.       }
  14.       
  15.       public static function init(param1:IFlexModuleFactory) : void
  16.       {
  17.          var fbs:IFlexModuleFactory = param1;
  18.          var style:CSSStyleDeclaration = StyleManager.getStyleDeclaration("CheckBox");
  19.          if(!style)
  20.          {
  21.             style = new CSSStyleDeclaration();
  22.             StyleManager.setStyleDeclaration("CheckBox",style,false);
  23.          }
  24.          if(style.defaultFactory == null)
  25.          {
  26.             style.defaultFactory = function():void
  27.             {
  28.                this.skin = null;
  29.                this.paddingLeft = 0;
  30.                this.selectedDisabledIcon = null;
  31.                this.fontWeight = "normal";
  32.                this.selectedOverIcon = null;
  33.                this.upSkin = null;
  34.                this.overIcon = null;
  35.                this.iconColor = 2831164;
  36.                this.overSkin = null;
  37.                this.selectedDisabledSkin = null;
  38.                this.selectedDownIcon = null;
  39.                this.disabledIcon = null;
  40.                this.textAlign = "left";
  41.                this.selectedDownSkin = null;
  42.                this.selectedUpSkin = null;
  43.                this.paddingRight = 0;
  44.                this.selectedOverSkin = null;
  45.                this.upIcon = null;
  46.                this.icon = CheckBoxIcon;
  47.                this.downSkin = null;
  48.                this.horizontalGap = 5;
  49.                this.selectedUpIcon = null;
  50.                this.disabledSkin = null;
  51.                this.downIcon = null;
  52.             };
  53.          }
  54.       }
  55.    }
  56. }
  57.  
  58.